package cscie160.project.bank;
//import cscie160.project.atm.ATMException;
/**
 * This class is a wrapper for a complex account information.
 * each ATM operation will require this information.
 * @author Michael Melnikov   
*/
public class AccountInfo
    implements java.io.Serializable //otherwise would throw in runtime java.io.NotSerializableException: cscie160.project.bank.AccountInfo
{
    /**
    * account Id
    */
    private int accountNumber;
    
    /**
    * account PIN
    */
    private int pin;
    
    /**
    * 2-args constructor
    */
    public AccountInfo(int accountNumber, int pin)
    {
        this.accountNumber = accountNumber;
        this.pin = pin;
    }
    
    /**
    * provides account Id
    * @return int
    */
    public int getAccountNumber()
    {
        return accountNumber;
    }
    
    /**
    * provides account PIN
    * @return int
    */
    public int getPin()
    {
        return pin;
    }
}